package com.tedu.ajax.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/user/")
@CrossOrigin(origins = "*", maxAge = 3600)
public class UserController {
    @RequestMapping("/list")
    public String say(HttpServletRequest request) {
//request.getReader();
        String id = request.getParameter("id");
        System.out.println(id + "===========");
        return "查询成功";
    }
}
